<div style="margin:0px auto;">
    <h2 style="text-align:center">{titlePageEditor}</h2>
    
    <form id="frm_editor" name="frm_editor"  method="post" action="" enctype="multipart/form-data">
    <table class="tbl_editor" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width:200px;">{lbl_titleProduct}</td>
                <td><input class="txt_input" id="txt_titleProduct" name="txt_titleProduct" type="text" value="{txt_productValue}" /></td>
            </tr>

            <tr></tr>
                <td>{lbl_prantCat}</td>
                <td><select class="cb_select" id="cb_select" name="cb_select">
                [OPEN htmlCat]
                	[LOOP category]
                		<option {cell_selected} value="{cell_ID}"> {cell_Value} </option>
                	[/LOOP category]
                [CLOSE htmlCat]
                </select></td>
            </tr>
            
            <tr>
                <td>{lbl_manufacturer}</td>
                <td><select class="cb_select" id="cb_manufacturer" name="cb_manufacturer">
                	{manufacturer}
                </select></td>
            </tr>
            
            <tr>
                <td>{lbl_picture}</td>
                <td><input class="files_input" id="file_picture" name="file_picture" type="file" /></td>
            </tr>

            <tr>
                <td>{lbl_picture}</td>
                <td><input class="files_input" id="file_picture_1" name="file_picture_1" type="file" /></td>
            </tr>
            <tr>
                <td>{lbl_picture}</td>
                <td><input class="files_input" id="file_picture_2" name="file_picture_2" type="file" /></td>
            </tr>
            <tr>
                <td>{lbl_picture}</td>
                <td><input class="files_input" id="file_picture_3" name="file_picture_3" type="file" /></td>
            </tr>
            <tr>
                <td>{lbl_picture}</td>
                <td><input class="files_input" id="file_picture_4" name="file_picture_4" type="file" /></td>
            </tr>
            
            

            <tr>
                <td>{lbl_price}</td>
                <td><input onblur="checkFrom('txt_price','int','Giá phải là số')" class="txt_input" id="txt_price" name="txt_price" type="text" value="{txt_priceValue}" /></td>
            </tr>

            <tr>
                <td>{lbl_priceSpecial}</td>
                <td><input onblur="checkFrom('txt_priceSpecial','int','Giá khuyến mãi phải là số')" class="txt_input" id="txt_priceSpecial" name="txt_priceSpecial" type="text" value="{txt_priceSpecialValue}" /></td>
            </tr>
            
            <tr>
                <td>{lbl_promotion}</td>
                <td><input class="txt_input" id="txt_promotion" name="txt_promotion" type="text" value="{txt_promotionValue}" /></td>
            </tr>
			
            <tr>
                <td>{lbl_datePromotion}</td>
                <td>
                	<input onblur="checkFrom('txt_From','date','Nhập ngày theo mẫu sau: 29-12-2011')" class="txt_input" style="width:200px;" id="txt_From" name="txt_From" type="text" value="{txt_FromValue}" />
                     - 
                    <input onblur="checkFrom('txt_To','date','Nhập ngày theo mẫu sau: 29-12-2011')" align="right" class="txt_input" style="width:200px;" id="txt_To" name="txt_To" type="text" value="{txt_ToValue}" />
                </td>
            </tr>
           
            <tr>
                <td>{lbl_warranty}</td>
                <td><input onblur="checkFrom('txt_warranty','int','Tháng bảo hành phải là số')" class="txt_input" id="txt_warranty" name="txt_warranty" type="text" value="{txt_warrantyValue}" /></td>
            </tr>

            <tr>
                <td colspan="2">
                <textarea id="txt_textarea" name="txt_textarea">{txt_textarea}</textarea>
                </td>
            </tr>

            <tr>
                <td>{lbl_Special}</td>
                <td><input {checked} class="txt_radio" id="txt_Special" name="txt_Special" type="checkbox" value="true" /></td>
            </tr>
			
			<!-- SEO -->
            <tr>
                <td style="text-align:center"><input onclick="getKeySeo('txt_titleProduct','txt_textarea');" type="button" id="createSeo" name="createSeo" value="{CreateSeo}" /></td>
            </tr>
            <tr>
                <td><strong>{lbl_Create_Seo_header}</strong></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>{lbl_seo_key}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_seo_key')" maxlength="255" id="txt_seo_key" name="txt_seo_key" type="text" value="{val_seo_key}" />&nbsp;<span id="txt_seo_key_leng"></span>&nbsp;{250}</td>
            </tr>
            <tr>
                <td>{lbl_title_page}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_title_page')" maxlength="100" id="txt_title_page" name="txt_title_page" type="text" value="{val_title_page}" />&nbsp;<span id="txt_title_page_leng"></span>&nbsp;{100}</td>
            </tr>
            <tr>
                <td>{lbl_keywords}</td>
                <td><input class="txt_input"  onkeyup="countleng('txt_keywords')" maxlength="200" id="txt_keywords" name="txt_keywords" type="text" value="{val_keywords}" />&nbsp;<span id="txt_keywords_leng"></span>&nbsp;{200}</td>
            </tr>
            <tr>
                <td>{lbl_description}</td>
                <td><textarea class="txt_input" onkeyup="countleng('txt_description')" maxlength="200" style="height:80px" id="txt_description" name="txt_description" type="text">{val_description}</textarea>&nbsp;<span id="txt_description_leng"></span>&nbsp;{200}</td>
            </tr>
            
            <tr>
                <td><strong>{lbl_Create_Seo_footer}</strong></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>{lbl_seo_h1}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_seo_h1')" maxlength="100" id="txt_seo_h1" name="txt_seo_h1" type="text" value="{val_seo_h1}" />&nbsp;<span id="txt_seo_h1_leng"></span>&nbsp;{100}</td>
            </tr>
            <tr>
                <td>{lbl_seo_h2}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_seo_h2')" maxlength="150" id="txt_seo_h2" name="txt_seo_h2" type="text" value="{val_seo_h2}" />&nbsp;<span id="txt_seo_h2_leng"></span>&nbsp;{150}</td>
            </tr>
            <tr>
                <td>{lbl_seo_p}</td>
                <td><textarea class="txt_input" onkeyup="countleng('txt_seo_p')" maxlength="200" style="height:80px" id="txt_seo_p" name="txt_seo_p" type="text">{val_seo_p}</textarea>&nbsp;<span id="txt_seo_p_leng"></span>&nbsp;{200}</td>
            </tr>
            <!--// SEO -->
            <tr>
                <td colspan="2" style="text-align:center; padding-top:15px;">
                	<input id="txt_seo_key_hi" name="txt_seo_key_hi" type="hidden" value="{val_seo_key}" />
                	<input class="clBut"  value=" {save} " onclick="return submitEditor();"  type="submit" />

                    <input id="ID" name="ID"  value="{valID}"  type="hidden" />
                	<input class="clBut" type="button"  value=" {cancel} "  onclick="window.parent.hs.close()" />
           			<input id="acProduct" name="acProduct" type="hidden"  value="{acProduct}"  />   
                </td>
            </tr>
    </table>
    </form>
</div>
<script src="{url_base}templates/admin/defaults/js/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="{url_base}templates/admin/defaults/js/ckfinder/ckfinder.js" type="text/javascript"></script>
<script type="text/javascript">
		CKEDITOR.replace('txt_textarea',
		{
			customConfig : '{url_base}templates/admin/defaults/js/ckeditor/config.js',
			filebrowserBrowseUrl:'{url_base}templates/admin/defaults/js/ckfinder/ckfinder.html?Type=Files',
			filebrowserImageBrowseUrl:'{url_base}templates/admin/defaults/js/ckfinder/ckfinder.html?Type=Images',
			filebrowserFlashBrowseUrl:'{url_base}templates/admin/defaults/js/ckfinder/ckfinder.html?Type=Flash',
			filebrowserUploadUrl:'{url_base}templates/admin/defaults/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
			filebrowserImageUploadUrl:'{url_base}templates/admin/defaults/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
			filebrowserFlashUploadUrl:'{url_base}templates/admin/defaults/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
		});
</script>